/**
 * 
 */
package de.gee.erep.shared.entities.citizen.details;

import java.util.ArrayList;

import de.gee.erep.shared.entities.citizen.CitizenDetail;
import de.gee.erep.shared.entities.citizen.CitizenDetailId;

public class Medals implements CitizenDetail {
	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Medals [medals=" + medals + ", id=" + id + "]";
	}

	/***/
	private static final long serialVersionUID = 1L;
	public static final String[] fieldnames = { "type", "amount" };
	ArrayList<Medal> medals = new ArrayList<Medal>();
	CitizenDetailId id;

	public Medals() {
	}

	public Medals(CitizenDetailId id) {
		this.id = id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see de.gee.erep.shared.entities.citizen.CitizenDetail#getId()
	 */
	@Override
	public CitizenDetailId getId() {
		return id;
	}

	/**
	 * @param element
	 * @param data
	 */
	public void set(final String element, final String data) {
	}

	public void addMedal(Medal medal) {
		medals.add(medal);
	}

}